package dongshi.daddy.main;

import dongshi.daddy.service.cluster.ClusterService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class ConsumerClusterMain {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context
                = new ClassPathXmlApplicationContext("consumer-cluster.xml");
        context.start();
        ClusterService clusterService = (ClusterService) context.getBean("myConsumerSideClusterService");
        System.err.println(clusterService.sayHi("helloooooo"));
        System.err.println(clusterService.sayHi("helloooooo"));
        System.err.println(clusterService.sayHi("helloooooo"));
        System.in.read();
    }
}


